package org.example.myframework.frame.demo.factory.handler;

import org.example.myframework.frame.demo.factory.PayEnum;
import org.springframework.stereotype.Component;

@Component
public class AliPayHandler implements PayHandler{
    @Override
    public PayEnum getPayType() {
        return PayEnum.ALI_PAY;
    }

    @Override
    public void pay() {
        System.out.println("支付宝支付");
    }
}
